package com.my.mapper;

import com.my.bean.BabyNursing;
import com.my.bean.MotherNursing;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 妈妈护理记录 Mapper 接口
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-08-24
 */
public interface MotherNursingMapper extends BaseMapper<MotherNursing> {
    /**
     * 查询所有数据
     * @param map
     * @return
     */
    List<MotherNursing> selectMyPage(@Param("param") Map map1,@Param("map")Map map,@Param("areaid")Long areaid,@Param("admin") boolean admin);
    int countMyPage(@Param("param")  Map map1,@Param("map")Map map,@Param("areaid")Long areaid,@Param("admin") boolean admin);


    //查询该文件有多少文件
    List<MotherNursing> selectWord(@Param("param") Long id);


    //护理记录
    List<MotherNursing> selectByHomeId(@Param("param") Long homeId);

    //查询宝宝
   List<BabyNursing> selectBabyNursing(@Param("param") Long homeId);




}